package com.bw.goods_module.detail;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.bw.common.mvvm.view.BaseActivity;
import com.bw.goods_module.BR;
import com.bw.goods_module.R;
import com.bw.goods_module.databinding.ActivityHomevalueBinding;

@Route(path = "/home/detailactivity")
public class DetailActivity extends BaseActivity<ActivityHomevalueBinding,GoodsDetailViewModel> {
    @Override
    public int bindLayout() {
        return R.layout.activity_homevalue;
    }

    @Override
    public int vrId() {
        return BR.vm;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //获取传递过来得goodsid以及category id
        long id = getIntent().getBundleExtra("bundle").getLong("goodsid");
        long categoryid = getIntent().getBundleExtra("bundle").getLong("categoryid");
        vm.goodsId=id;
        vm.categoryId = categoryid;
    }
}
